package com.example.yuejian.yuejian.service;

import com.example.yuejian.yuejian.bean.EditAddress;
import com.example.yuejian.yuejian.bean.EditGender;
import com.example.yuejian.yuejian.bean.EditNickname;
import com.example.yuejian.yuejian.bean.EditPassword;
import com.example.yuejian.yuejian.bean.MyFollowMaster;
import com.example.yuejian.yuejian.bean.MyPrize;
import com.example.yuejian.yuejian.bean.Order;
import com.example.yuejian.yuejian.bean.OrderDetail;
import com.example.yuejian.yuejian.bean.ShowPhotoList;
import com.example.yuejian.yuejian.bean.Tuikuan;
import com.example.yuejian.yuejian.bean.UsersInfo;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/9/27.
 */

public interface UserService {

    //我的奖品
    @GET("myprize")
    Call<List<MyPrize>> myprize(
            @Query("users_id")String  users_id);
    //个人信息
    @GET("user_info")
    Call<UsersInfo> userinfo(
            @Query("uid")String  users_id);
    //我的关注
    @GET("followlist")
    Call<List<MyFollowMaster>> myFollowlist(
            @Query("users_id")String  users_id);
    //我的关注
    @GET("myShowPhotoList")
    Call<List<ShowPhotoList>> myShowPhotoList(
            @Query("users_id")String  users_id);
    //我的订单
    @GET("myorder")
    Call<List<Order>> myOrderList(
            @Query("users_id")String  users_id);
    //我的订单
    @GET("myorder_detail")
    Call<OrderDetail> order_detail(
            @Query("order_id")String  order_id);
    //我的订单
    @GET("tuikuan")
    Call<Tuikuan> tuikuan(
            @Query("users_id")String  users_id,
            @Query("order_id")String  order_id);
    //修改性别
    @GET("editGender")
    Call<EditGender> editGender(
            @Query("id")String  users_id,
            @Query("gender")String   gender);
    //修改昵称
    @GET("editNickname")
    Call<EditNickname> editNickname(
            @Query("id")String  users_id,
            @Query("nickname")String   name);
    //修改地址
    @GET("editAddress")
    Call<EditAddress> editAddress(
            @Query("id")String  users_id,
            @Query("address")String   address);
    //修改地址
    @GET("editPwd")
    Call<EditPassword> editPwd(
            @Query("id")String  users_id,
            @Query("oldpwd")String   oldpwd,
            @Query("pwd")String   pwd,
            @Query("rePwd")String   repwd);
}
